<?php

/**
 * This is the model class for table "ParamModel".
 *

 *
 * The followings are the available model relations:
 */
class ActiveForm extends CActiveForm
{
	/**
	 * Returns the static model of the specified AR class.
	 * @param string $className active record class name.
	 * @return BTrademethod the static model class
	 */
	function getClientId($model,$attribute,$htmlOptions=array())
	{
		if(!isset($htmlOptions['name']))
			$htmlOptions['name']=CHtml::resolveName($model,$attribute);
		if(!isset($htmlOptions['id']))
			$htmlOptions['id']=CHtml::getIdByName($htmlOptions['name']);
		else if($htmlOptions['id']===false)
			unset($htmlOptions['id']);
		
		return $htmlOptions['id'];
	}

}